package cn.thinkluck.pattern.templatemethod.callback;

import lombok.extern.slf4j.Slf4j;

/**
 * 业务逻辑类
 * @Author liutao
 * @DateTime 2024/7/31 下午11:37
 */
@Slf4j
public class Service {
    public void doSomething(ICallBack callBack)
    {
        log.info("业务逻辑开始");
        callBack.doSomething();
        log.info("业务逻辑结束");
    }
}
